#基础镜像
FROM alpine:latest

#拷贝
COPY wondershaper1.4.1/wondershaper /usr/local/bin/

#安装tc、bash
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone \
    && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update \
    && apk add iproute2 && apk add --no-cache bash \
    && chmod +x /usr/local/bin/wondershaper && dos2unix /usr/local/bin/wondershaper

#保持运行
CMD ["tail", "-f", "/dev/null"]
